<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>{$term.name}</title>
    <link rel="stylesheet" href="CSS/reset.css">
    <link rel="stylesheet" href="CSS/index.css">
    <script type="text/javascript" src="JS/jquery-1.7.2.min.js"></script>
    <!--slide-->
    <script type="text/javascript" src="JS/slide.js"></script>
    <script type="text/javascript" src="JS/global.js"></script>
    <script src="../Scripts/swfobject_modified.js" type="text/javascript"></script>
    <style>
        .conleft{
            padding: 0 10px;
        }
    </style>
</head>
<body>
<?php $time = date("Y年m月d日",time());
	$date=(date('N'));
$arr=array();
$arr=$term?>
<div class="warrper">
    <!--slide-width-->
    <div class="slide-wdith">
        <!--slide-->
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="490">
          <param name="movie" value="index_view/index/flash/flash.swf">
          <param name="quality" value="high">
          <param name="wmode" value="transparent">
          <param name="swfversion" value="8.0.35.0">
          <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
          <param name="expressinstall" value="../Scripts/expressInstall.swf">
          <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="index_view/index/flash/flash.swf" width="100%" height="490">
            <!--<![endif]-->
            <param name="quality" value="high">
            <param name="wmode" value="transparent">
            <param name="swfversion" value="8.0.35.0">
            <param name="expressinstall" value="../Scripts/expressInstall.swf">
            <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
            <div>
              <h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="获取 Adobe Flash Player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
      </object>
<!--slide end-->
        <!--swz-->

      <!--swz end-->
</div>
    <!--slide-width end-->
    <div class="wrap">
        <!--header-->
        <div class="header w1100">
            <div class="header-top clearFloat">
                <div class="htleft floatLeft">
                    {$time} 星期{$date} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index_view/index/land.html">登录</a> | <a href="index_view/index/register.html">注册</a>
                </div>
                <div class="htright floatRight">
                     <a href=""><img src="UPLOADS/{$site.wxlogo}" alt="" width="23" height="21" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="{$site.lq}"><img src="UPLOADS/{$site.hq}" alt="" width="23" height="21"/></a>&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="{$site.sinalink}"><img src="UPLOADS/{$site.web}" alt="" width="23" height="21"/></a>
                </div>
            </div>
            <br>

            <!--nav-->
            <div class="nav">
                <ul class="clearFloat">
                  <li><a href="{:U('/')}" class="active">首页</a></li>
					{foreach $termList.nav as $term}						
						<li><a href="{$term.url}">{$term.name}</a></li>
					{/foreach}
                </ul>
            </div>
            <!--nav end  -->
        </div>
        <!--header end-->
        <div class="content">
            <div class="content-width w1100 clearFloat">
                <div class="content-index clearFloat" id="abc">
                    <div class="conleft floatRight clearFloat">
                        <div class="aboutwidth pl10 pr10">
                            <h3 class="f16 text-3c  border-b-c8 pt20 pb10 relative fb">{$arr.name}   <span class="text-3c f14 fn  aboutrightspan absolute"> <a
                                    href="">当前位置</a> > <a href="">{$arr.name}</a></span></h3><br>
                            <div class="guide"><br>
								{foreach:$arr.content as $c}
								<h3 class="pb5 f20 text-3c fb">{$c.tag.name}<span class="display f14 text-78">beijing aiqinghai meiguiwenhua bolanyuan </span></h3>
                                
								<p>
                                    {$c.tag.num}{$c.tag.num1}<br>
                                    {$c.tag.address}{$c.tag.address1}<br>
                                    {$c.tag.line}{$c.tag.line1}
                                </p>
								{/foreach}
                            </div>
                            <div class="indexlxwrt"><br><br>
                                <h3 class="f18 text-3c3c3c mb15">给我们留言</h3>
                                <div class="indexfrom">
                                    <form action="" >
                                        <div class="indexwid clearFloat">
                                            <ul class="reg-box floatLeft">
                                                <li>
                                                    <input type="text" value="姓名" class="user" style="color:#969696;" onBlur="textBlur(this)" onFocus="textFocus(this)"/><span class="error error0"></span>
                                                </li>
                                                <li>
                                                    <input type="text" value="手机号" class="phone" maxlength="11" style="color:#969696;" onBlur="textBlur(this)" onFocus="textFocus(this)"/><span class="error error1"></span>
                                                </li>
                                                <li>
                                                    <input type="text" value="邮箱" class="email"  style="color:#969696;" onBlur="textBlur(this)" onFocus="textFocus(this)"/><span class="error error2"></span>
                                                </li>
                                            </ul>
                                            <div class="liyan floatRight">
                                                <textarea name="" id="" class="intextarea" value="留言" style="color:#969696;">留言</textarea>
                                            </div>
                                        </div>
                                        <a href="" class="tjly">提交留言</a>

                                    </form>
                                </div>
                            </div>
                            <br>
                            <div class="baidu">
                                <h3 class="f18 text-3c3c3c mb15">查看行车路线</h3>
                                <div class="ditu">
                                    <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
                                    <div style="width:823px;height:340px;border:#ccc solid 1px;" id="dituContent"></div>
                                    <script type="text/javascript">
                                        //创建和初始化地图函数：
                                        function initMap(){
                                            createMap();//创建地图
                                            setMapEvent();//设置地图事件
                                            addMapControl();//向地图添加控件
                                            addMarker();//向地图中添加marker
                                        }

                                        //创建地图函数：
                                        function createMap(){
                                            var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
                                            var point = new BMap.Point(105.980271,30.047614);//定义一个中心点坐标
                                            map.centerAndZoom(point,9);//设定地图的中心点和坐标并将地图显示在地图容器中
                                            window.map = map;//将map变量存储在全局
                                        }

                                        //地图事件设置函数：
                                        function setMapEvent(){
                                            map.enableDragging();//启用地图拖拽事件，默认启用(可不写)
                                            map.enableScrollWheelZoom();//启用地图滚轮放大缩小
                                            map.enableDoubleClickZoom();//启用鼠标双击放大，默认启用(可不写)
                                            map.enableKeyboard();//启用键盘上下左右键移动地图
                                        }

                                        //地图控件添加函数：
                                        function addMapControl(){
                                            //向地图中添加缩放控件
                                            var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
                                            map.addControl(ctrl_nav);
                                            //向地图中添加缩略图控件
                                            var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});
                                            map.addControl(ctrl_ove);
                                            //向地图中添加比例尺控件
                                            var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});
                                            map.addControl(ctrl_sca);
                                        }

                                        //标注点数组
                                        var markerArr = [{title:"四川省自贡市自流井区安全巷63号",content:"爱情海",point:"104.865222|29.292704",isOpen:0,icon:{w:21,h:21,l:0,t:0,x:6,lb:5}}
                                        ];
                                        //创建marker
                                        function addMarker(){
                                            for(var i=0;i<markerArr.length;i++){
                                                var json = markerArr[i];
                                                var p0 = json.point.split("|")[0];
                                                var p1 = json.point.split("|")[1];
                                                var point = new BMap.Point(p0,p1);
                                                var iconImg = createIcon(json.icon);
                                                var marker = new BMap.Marker(point,{icon:iconImg});
                                                var iw = createInfoWindow(i);
                                                var label = new BMap.Label(json.title,{"offset":new BMap.Size(json.icon.lb-json.icon.x+10,-20)});
                                                marker.setLabel(label);
                                                map.addOverlay(marker);
                                                label.setStyle({
                                                    borderColor:"#808080",
                                                    color:"#333",
                                                    cursor:"pointer"
                                                });

                                                (function(){
                                                    var index = i;
                                                    var _iw = createInfoWindow(i);
                                                    var _marker = marker;
                                                    _marker.addEventListener("click",function(){
                                                        this.openInfoWindow(_iw);
                                                    });
                                                    _iw.addEventListener("open",function(){
                                                        _marker.getLabel().hide();
                                                    })
                                                    _iw.addEventListener("close",function(){
                                                        _marker.getLabel().show();
                                                    })
                                                    label.addEventListener("click",function(){
                                                        _marker.openInfoWindow(_iw);
                                                    })
                                                    if(!!json.isOpen){
                                                        label.hide();
                                                        _marker.openInfoWindow(_iw);
                                                    }
                                                })()
                                            }
                                        }
                                        //创建InfoWindow
                                        function createInfoWindow(i){
                                            var json = markerArr[i];
                                            var iw = new BMap.InfoWindow("<b class='iw_poi_title' title='" + json.title + "'>" + json.title + "</b><div class='iw_poi_content'>"+json.content+"</div>");
                                            return iw;
                                        }
                                        //创建一个Icon
                                        function createIcon(json){
                                            var icon = new BMap.Icon("http://app.baidu.com/map/images/us_mk_icon.png", new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)})
                                            return icon;
                                        }

                                        initMap();//创建和初始化地图
                                    </script>
                                </div>
                            </div><br><br>

                        </div>





                    </div>
                    <div class="conright floatLeft">
                        <div class="about">
                            <h3 class="abouh3">{$arr.name}</h3>
                            <div class="aboutlist ml10 mr10">
                                <ul>
                                   {foreach:$arr.child as $c}
                                    <li><a href="{$c.url}" class="abactive">{$c.name}</a></li>
								{/foreach}
                                
                                </ul>
                            </div>
                        </div>
                        <div class="onlie bgd-ff pt10 pb10">
                            <a href=""><img src="images/onlie.jpg" alt="" width="220" height="112"/></a>
                        </div>

                        <div class="conrigtlist mt15 mb5">
                            <ul class="clearFloat">
                              {foreach:term('6')['child'] as $term}
                                <a href="">
                                    <li>
                                        <img src="images/inrt1.png" alt="" width="53" height="54"/>
                                        <span>{$term.name}</span>
                                    </li>
                                </a>
							{/foreach}

                            </ul>
                        </div>



                    </div>
                </div>

                <!--footer-->
                <div class="footer bgd-ff text-center">
                    <p>版权所有：{$site.banquan}                 备案：{$site.bh}                  技术支持：<a href="www.wanhunet.com">{$site.jszc} </a></p>
                </div>
                <!--footer end-->
                <script>
                    window.onload = function() {
                        var h=$('#abc').outerHeight(true);
                        $('.conleft').height(h);
                        $('.conright').height(h);
                    }
                </script>




            </div>

        </div>




    </div>

</div>

</body>
</html>